<?php
namespace Admin\Model;
use Think\Model\RelationModel;
class AppModel extends RelationModel{
	protected $_validate = array(
		/*array('zjs_username','require','用户名不能为空!',1),
		array('zjs_email','email','邮箱格式不正确',1)*/
	);

	protected $_link = array(
		'apptype' => array(
		    'mapping_type'  => self::BELONGS_TO,
		    'class_name'    => 'Apptype',
		    'foreign_key'   => 'zjs_typeid',
		    'mapping_name'  => 'apptype',
		    'mapping_fields'=> 'zjs_typename',
		    'as_fields'		=> 'zjs_typename'
		)
	);


}
?>